package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.FeedBackReplyEntity;
import com.example.demo.entity.FeedbackEntity;
import com.example.demo.mapper.FeedbackMapper;
import com.example.demo.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FeedbackServiceImpl extends ServiceImpl<FeedbackMapper, FeedbackEntity> implements FeedbackService {
    @Autowired
    private FeedbackMapper feedbackMapper;
    @Override
    public FeedbackEntity selectById(Integer userId) {
        return feedbackMapper.selectById(userId);
    }

    @Override
    public List<FeedBackReplyEntity> selectAllChild(Integer parentId) {
        return feedbackMapper.selectAllChild(parentId);
    }
}
